/**
 * 
 */
package org.dse.web;

/**
 * This interface give methods for associating the WebGraph object with the
 * database. The class which implements it will contain the logic to load data
 * and transfer it to a WebGraph object, and save a WebGraph object to the
 * database.
 * 
 * @author zhangchen
 * 
 */
public interface WebGraphDelegate {

	/**
	 * Load data from database, and transfer it to a WebGraph object.
	 * 
	 * @return the WebGraph object associated with database
	 */
	public WebGraph rebuildWebGraph();

	/**
	 * Store a WebGraph object to database.
	 * 
	 * @param graph
	 *            the WebGraph object to be stored
	 */
	public void saveWebGraph(WebGraph graph);
}
